# -*- coding:utf-8 -*-

import os
import logging
import multiprocessing  # NOQA


logger = multiprocessing.get_logger()
formatter = logging.Formatter('[%(levelname)s/%(processName)s] %(message)s')

log_file = os.path.dirname(__file__)
log_file = os.path.join(log_file, "logs", "monitor.log")
handler = logging.FileHandler(log_file)
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
